<template>
	<view class="account">
		<view class="navbar">
			<view class="sys-bar" :style="{height:sysHeight}"></view>
			<view class="navbarh acea-row row-bottom">
				<view class="acea-row row-middle">
					<view class="iconfont icon-jiantou-zuo2" @click.stop="back"></view>
					<view class="title">账户信息</view>
				</view>
			</view>
		</view>
		<view class="info" @click="pathclick">
			<view class="acea-row row-between-wrapper">
				<view class="stutas">个人账户状态</view>
				<view class="text">正常缴存</view>
			</view>
			<view class="acea-row row-between-wrapper" style="margin-top: 30rpx;">
				<view class="stutas">个人账户余额</view>
				<view class="text">{{ userdata.yue }}</view>
			</view>
			<view class="acea-row row-between-wrapper" style="margin-top: 30rpx;">
				<view class="stutas">个人账户</view>
				<view class="text">{{ userdata.card_id }}</view>
			</view>
			<view class="acea-row row-between-wrapper" style="margin-top: 30rpx;">
				<view class="stutas">中心编号</view>
				<view class="text">{{ userdata.zongxin_bianhao }}</view>
			</view>
			<view class="acea-row row-between-wrapper" style="margin-top: 30rpx;">
				<view class="stutas">中心名称</view>
				<view class="text">{{ userdata.zongxin_name }}</view>
			</view>
			<view class="acea-row row-right look" style="margin-top: 30rpx;">
				<view>点击查看详情 ></view>
			</view>
		</view>
		
	</view>
</template>

<script>
	let sysHeight = uni.getSystemInfoSync().statusBarHeight + 'px';
	import{
		userData
	} from '@/api/user.js'
	export default {
		data() {
			return {
				sysHeight: sysHeight,
				userdata: [],
				
			};
		},
		onShow() {
			this.getdata();
			
		},
		methods:{
			getdata(){
				userData().then(res=>{
					this.userdata = res.data.userData;
				})
			},
			pathclick(){
				uni.navigateTo({
					url:'/pages/index/account-details'
				})
			},
			back(){
				uni.navigateBack();
			}
		}
	}
</script>

<style lang="scss" scoped>
	.account{
		
		.navbar{
			width: 100%;
			height: 180rpx;
			background-image: url('https://zhufanggongjijin.oss-cn-hangzhou.aliyuncs.com/navbar-bg.png');
			background-size: 100% 100%;
			
			.navbarh{
				width: 100%;
				height: 88rpx;
				padding: 0 30rpx;
				
				.icon-jiantou-zuo2{
					color: #fff;
					font-size: 40rpx;
				}
				.title{
					font-size: 36rpx;
					color: #fff;
					margin-left: 20rpx;
				}
			}
		}
		
		.info{
			padding: 30rpx 40rpx;
			background-color: #fff;
			
			.stutas{
				color: #888;
				font-size: 30rpx;
			}
			.text{
				font-size: 32rpx;
			}
			.look{
				color: #3B61D7;
				font-size: 30rpx;
			}
		}
		
	}
</style>
